package com.hulk.dryad.admin.control.other;

import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
import com.github.xiaoymin.knife4j.annotations.ApiSort;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

/**
 *
 * @author hulk
 * @date 2019/12/05
 * HeartBeatCtl
 */
@Api(value = "heartbeat", tags = "心跳链路")
@ApiSort(1)
@Slf4j
@RestController
@RequestMapping(value = "/rest")
public class HeartBeatController {

    @ApiOperation(value = "heartbeat", notes = "ADMIN心跳链路")
    @ApiOperationSupport(order = 0)
    @GetMapping("/heartbeat")
    @ResponseBody
    public String execute() {
        log.info("dryad-admin heartbeat...");
        return "dryad-admin heartbeat...";
    }

}
